package com.example.demo.entity;

import com.example.demo.common.NotifyType;

/**
 * 定义服务端发送给前端的实体对象
 * **/
public class Message {

    private String fromUserId;
    private String toUserId;
    private String fromNickname;
    private String toNickname;

    //推送生成时间
    private String sendTime;
    //推送类型，公告、提醒、冻结、私信
    private NotifyType.MsgType msgType;
    //动作类型
    private NotifyType.ActionType actionType;
    //通知内容
    private String notifyContent;
    //是否跳转url
    private String url;

    public String getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(String fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getToUserId() {
        return toUserId;
    }

    public void setToUserId(String toUserId) {
        this.toUserId = toUserId;
    }

    public String getFromNickname() {
        return fromNickname;
    }

    public void setFromNickname(String fromNickname) {
        this.fromNickname = fromNickname;
    }

    public String getToNickname() {
        return toNickname;
    }

    public void setToNickname(String toNickname) {
        this.toNickname = toNickname;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public NotifyType.MsgType getMsgType() {
        return msgType;
    }

    public void setMsgType(NotifyType.MsgType msgType) {
        this.msgType = msgType;
    }

    public NotifyType.ActionType getActionType() {
        return actionType;
    }

    public void setActionType(NotifyType.ActionType actionType) {
        this.actionType = actionType;
    }

    public String getNotifyContent() {
        return notifyContent;
    }

    public void setNotifyContent(String notifyContent) {
        this.notifyContent = notifyContent;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
